<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*"%>
<%
    Manager manager = (Manager)session.getAttribute("manager");
    if(manager != null){
        String action = request.getParameter("action");
        if(action.equals("lock")){
            application.setAttribute("lock", true);
            out.write("锁定成功");
        }else{
            application.setAttribute("lock", false);
            out.write("解锁成功");
        }
    }else{
         out.write("处理失败，权限不足！");
    }
%>
